function modules() {
  const modulesFiles = require.context(`@/components`, true, /\.vue$/);
  return modulesFiles.keys().reduce((cur, pre) => {
    const content = modulesFiles(pre);
    cur[content.default.name] = content.default;
    return cur;
  }, {});
};
export default (app) => {
  const module = modules();
  Object.entries(module).map((item) => app.component.apply(app, item));
};
